package nc.ui.caa.checkresult;

import nc.itf.capub.para.IDZButton;
import nc.itf.capub.para.INDZBillType;
import nc.ui.cad.privatebtn.IFTButton;
import nc.ui.capub.baseui.PagSingleCardController;
import nc.ui.capub.baseui.SingleCardBaseUI;
import nc.ui.trade.button.IBillButton;
import nc.vo.caa.checkresult.CheckdetailAggVO;
import nc.vo.caa.checkresult.CheckdetailVO;
import nc.vo.caa.checkresult.CheckresultAggVO;
import nc.vo.caa.checkresult.CheckresultVO;

public class CheckresultController extends PagSingleCardController {
	
	public CheckresultController() {
		super();
	}

	public CheckresultController(SingleCardBaseUI billUI) {
		super(billUI);
	}
	
	private String billType = INDZBillType.ACCOUNT_DZ_DZJG;
	
	public String getBillType() {
		return billType;
	}
	
	public void setBillType(String billType) {
		this.billType = billType;
	}
	
	public String[] getBillVoName() {
		if(INDZBillType.ACCOUNT_DZ_DZJG.equals(billType)){
			return new String[]{
					CheckresultAggVO.class.getName(),
					CheckresultVO.class.getName(),
					CheckresultVO.class.getName()
			};
		}else if(INDZBillType.ACCOUNT_DZ_DZMX.equals(billType)){
			return new String[]{
					CheckdetailAggVO.class.getName(),
					CheckdetailVO.class.getName(),
					CheckdetailVO.class.getName()
			};
		}else{
			return null;
		}
		
	}
	
	@Override
	public boolean isBodyShowNavigationBar() {
		if(INDZBillType.ACCOUNT_DZ_DZJG.equals(billType)){
			return false;
		}else{
			return true;
		}
	}

	@Override
	public int[] getCardButtonAry() {
		if(INDZBillType.ACCOUNT_DZ_DZJG.equals(billType)){
			return new int[]{
					IBillButton.Query,
					IBillButton.Refresh,
                    IDZButton.DZ,
//                    IDZButton.ALLRECORD,
//                    IDZButton.ERRRECORD,
                    IDZButton.SERRECORD
			};
		}else if(INDZBillType.ACCOUNT_DZ_DZMX.equals(billType)){
			return new int[]{
					IDZButton.DZQUE,
					IFTButton.ZHFH
			};
		}else{
			return null;
		}
		
	}
}
